<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title></title>

</head>

<body>
</body>
<script>
    var arr = [
        '艾韬',
        '梁梦林',
        '张三傻逼'
    ]
    console.log("艾韬".replace(/(?<=.)./g, '*').substring(0, 2));
</script>

</html>